<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
ini_set('display_errors',1);
error_reporting(E_ALL);

require 'lib/Doctrine/Doctrine.php';
spl_autoload_register(array('Doctrine_Core', 'autoload'));
$pdo = new PDO('mysql:host=localhost;dbname=devimmophp', 'devimmophp', 'romain');
$connexion_db = Doctrine_Manager::connection($pdo);
$connexion_db->setAttribute(Doctrine_Core::ATTR_TBLNAME_FORMAT, 'immo_%s');

Doctrine_Core::generateModelsFromDb('models', array('devimmophp'), array('generateTableClasses' => true));
?>
